package com.qs.core.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the gen_insurance_provider_mst database table.
 * 
 */
@Entity
@Table(name="gen_insurance_provider_mst")
public class GenInsuranceProviderMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String insuranceProviderId;
	private String activeFlag;
	private String createdBy;
	private Date createdDt;
	private String insuranceProviderName;
	private String insuranceType;
	private String updatedBy;
	private Date updatedDt;
	private List<GenApplicantInfo> genApplicantInfos;
	private GenLookupTypeMst genLookupTypeMst;

    public GenInsuranceProviderMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="INSURANCE_PROVIDER_ID")
	public String getInsuranceProviderId() {
		return this.insuranceProviderId;
	}

	public void setInsuranceProviderId(String insuranceProviderId) {
		this.insuranceProviderId = insuranceProviderId;
	}


	@Column(name="ACTIVE_FLAG")
	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="INSURANCE_PROVIDER_NAME")
	public String getInsuranceProviderName() {
		return this.insuranceProviderName;
	}

	public void setInsuranceProviderName(String insuranceProviderName) {
		this.insuranceProviderName = insuranceProviderName;
	}


	@Column(name="INSURANCE_TYPE")
	public String getInsuranceType() {
		return this.insuranceType;
	}

	public void setInsuranceType(String insuranceType) {
		this.insuranceType = insuranceType;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to GenApplicantInfo
	@OneToMany(mappedBy="genInsuranceProviderMst", fetch=FetchType.EAGER)
	public List<GenApplicantInfo> getGenApplicantInfos() {
		return this.genApplicantInfos;
	}

	public void setGenApplicantInfos(List<GenApplicantInfo> genApplicantInfos) {
		this.genApplicantInfos = genApplicantInfos;
	}
	

	//bi-directional many-to-one association to GenLookupTypeMst
    @ManyToOne
	@JoinColumn(name="ADDRESS_ID")
	public GenLookupTypeMst getGenLookupTypeMst() {
		return this.genLookupTypeMst;
	}

	public void setGenLookupTypeMst(GenLookupTypeMst genLookupTypeMst) {
		this.genLookupTypeMst = genLookupTypeMst;
	}
	
}